//
//  SMACDDressupController.swift
//  SmiraAiChat
//
//  Created by mumu on 2024/9/23.
//

import UIKit

class SMACDDressupController: UIViewController {
    lazy var dressupBtn_SMAC: UIButton =  UIButton.init()
    lazy var astrBtn_SMAC: UIButton =  UIButton.init()
    lazy var dismissBtn_SMAC: UIButton = {
        let btn = UIButton.init()
        btn.setImage(UIImage.init(named: "icon_close"), for: .normal)
        btn.addTarget(self, action: #selector(dismissLast_AMSC), for: .touchUpInside)
        return btn
        
    }()
    
    @objc func dismissLast_AMSC() {
        
    }
    override func viewDidLoad() {
        super.viewDidLoad()
        dressupBtn_SMAC.setBackgroundImage(UIImage.init(named: "img_My Planet"), for: .normal)
        astrBtn_SMAC.setBackgroundImage(UIImage.init(named: "img_My Astronaut"), for: .normal)
        
        
        let aititle = UILabel.init()
        aititle.text = "Dress Up My Planet"
        aititle.font = UIFont(name: "HarmonyOS Sans Bold", size: 18.x_bili)
        aititle.textAlignment = .left
        
        
        let aititle1 = UILabel.init()
        aititle1.text = "Style My Astronaut"
        aititle1.font = UIFont(name: "HarmonyOS Sans Bold", size: 18.x_bili)
        aititle1.textAlignment = .right
        
        view.backgroundColor = UIColor(red: 0, green: 0, blue: 0, alpha: 0.7000)
        
        let whiteBg = UIView.init()
        whiteBg.backgroundColor = .white
        whiteBg.layer.cornerRadius = 32
        whiteBg.layer.masksToBounds = true
        
        view.addSubview(whiteBg)
        whiteBg.addSubview(dismissBtn_SMAC)
        
        whiteBg.addSubview(dressupBtn_SMAC)
        whiteBg.addSubview(astrBtn_SMAC)
        dressupBtn_SMAC.addSubview(aititle)
        astrBtn_SMAC.addSubview(aititle1)
        
        
        dressupBtn_SMAC.addTarget(self, action: #selector(gotoNextController(button_SMAC:)), for: .touchUpInside)
        astrBtn_SMAC.addTarget(self, action: #selector(gotoNextController(button_SMAC:)), for: .touchUpInside)
    }
    

   @objc func gotoNextController(button_SMAC:UIButton)  {
        if button_SMAC == dressupBtn_SMAC {
           
            return
        }
    }

}
